/**
 * @filename:CourseExamPaperService Course
 * @project constract  V1.0
 * Copyright(c) 2018  Co. Ltd. 
 * All right reserved. 
 */
package com.znufe.exam.service;

import java.util.List;

import com.znufe.exam.domain.CourseExamPaper;
/**   
 *  
 * @Description:  课程表——SERVICE
 * @Author:          
 * @CreateDate:   Course
 * @Version:      V1.0
 *    
 */
public interface CourseExamPaperService {
	
	/**
	 * @explain 查询课程表对象
	 * @param   id
	 * @return  CourseExamPaper
	 * @author  
	 */
	CourseExamPaper selectByPrimaryKey(Integer id);
	
	/**
	 * @explain 删除课程表对象
	 * @param   id
	 * @return  int
	 * @author  
	 */
	int deleteByPrimaryKey(Integer id);
	
	/**
	 * @explain 添加课程表对象
	 * @param   courseExamPaper
	 * @return  int
	 * @author  
	 */
	int insertSelective(CourseExamPaper courseExamPaper);
	
	/**
	 * @explain 修改课程表对象
	 * @param   courseExamPaper
	 * @return  int
	 * @author  
	 */
	int updateByPrimaryKeySelective(CourseExamPaper courseExamPaper);
	
	/**
	 * @explain 查询课程表集合
	 * @param   courseExamPaper
	 * @return  List<CourseExamPaper>
	 * @author  
	 */
	List<CourseExamPaper> queryCourseExamPaperList(CourseExamPaper courseExamPaper);

    /**
     * 获取课程包含的所有试卷ID
     * @param courseId
     * @return
     */
    List<Integer> getAllExamPaperId(Integer courseId);

    /**
     * 删除课程绑定的所有试卷
     * @param courseId
     * @return
     */
    int deleteByCourseId(Integer courseId);
}